home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48_1 / gateway_ < prev    next >
Internet Message Format  |  1995-03-31  |  14KB

  1. From: Erik Bryntse <erikmb@etek.chalmers.se>
  2. Subject:  v04i014:  gateway_eb - Gateway codelock program v2.8 (beta), Part01/01
  3. Newsgroups: comp.sources.hp48
  4. Organization: Chalmers University of Technology, Gothenburg, Sweden
  5. Followup-To: comp.sys.hp48
  6. Approved: spell@seq.uncwil.edu
  7.  
  8. Checksum:  914719877 (verify with brik -cv)
  9. Submitted-by: Erik Bryntse <erikmb@etek.chalmers.se>
  10. Posting-number: Volume 4, Issue 14
  11. Archive-name: gateway_eb/part01
  12.  
  13.  
  14. BEGIN_DOC gateway.doc
  15. Finally, a new version of the Gateway codelock program is
  16. finished. The problems that people reported with v2.7 were
  17. mainly:
  18.  
  19. 1) Gateway crashes when you have a null-named object in the
  20. current path.
  21.  
  22. 2) Gateway will not work OK with alarms that adjust the clock.
  23.  
  24. 3) I don't want to see the copyright message every time I turn my
  25. calculator on.
  26.  
  27. 4) It is difficult to know when one can press the first key of the
  28. code, and sometimes the first key is lost.
  29.  
  30. I have fixed these problems in version 2.8, and I now release a
  31. beta version, for final testing. If you are not afraid of a memory
  32. lost, try it!
  33.  
  34. If it works OK, please let me know!
  35.  
  36. If you have problems with it, please send me a description of
  37. what problems you have and when they occur. Also tell me your
  38. calculator version and what programs you have that may cause
  39. conflicts. Thanks!
  40.  
  41. If I don't hear of any serious problems, I will release the final
  42. version in a few weeks.
  43.  
  44. Erik.
  45.  
  46.  
  47. GATEWAY-48 Codelock Program ver 2.8 (beta)
  48. ==========================================
  49.  
  50. GATEWAY-48 is a codelock program for your HP48SX. When your HP48SX
  51. is turned on, it displays a startup message (for example your name
  52. and phone number) and prompts you for a 4-digit code. If you key
  53. in the correct code, your 48 is turned on just like usual. Other-
  54. wise it is turned off again.
  55.  
  56. With GATEWAY-48 you have complete software security and enough
  57. hardware security to keep people from messing with your calcu-
  58. lator. If you know how, you CAN get in without knowing the right
  59. code, but the memory will be cleared in the process. All normal
  60. stuff such as ON-C and ON-A-F will not work.
  61.  
  62. A lot of work has been spent on the user interface and ruggedness
  63. of GATEWAY-48. This means that
  64.  
  65. - You can easily change the code.
  66. - There is a built-in program to redefine the OFF key.
  67. - You can provide a startup message like "Owned by XXYY".
  68. - All is contained in one library, which cannot be modified. 
  69. - The code cannot be accidentally changed, since it is stored with
  70.   a checksum.
  71. - Alarms can be disabled when the codelock is enabled (ie the 48
  72.   is turned off). They will execute as soon as the 48 is turned
  73.   back on.
  74. - If alarms are allowed to execute when the codelock is enabled,
  75.   the calculator is turned off again after the alarm is finished.
  76. - There is a built-in program to remove GATEWAY-48 from your 48.
  77.  
  78.  
  79. INSTRUCTIONS
  80. ============
  81. If you have something you do not wish to lose in your calculator,
  82. make a backup, just in case... Also remove any old versions of
  83. Gateway that you might have.
  84.  
  85. Download the string at the end of this message to your 48. Compile
  86. it using ASC->. Store the resulting library with 0 STO. Turn off 
  87. your 48, then on again. You will see a short message when the lib-
  88. rary installs.
  89.  
  90. Now press the LIBRARY menu key. There will now be a menu named
  91. GATEWAY-48. In this menu you will find the following programs:
  92.  
  93. ASSIGN
  94. ------
  95. Assigns the off key to the new off program OFFC. Turns on USER
  96. mode.
  97.  
  98. NEWCODE
  99. -------
  100. Enables you to enter or change the code. Run this after installing
  101. GATEWAY-48. The first time you run it, it will only prompt you for
  102. the new code, but normally you must key in the old code as well.
  103.  
  104. REMOVE
  105. ------
  106. Uninstalls the GATEWAY-48 library and clears key definitions. Also
  107. removes the hidden code.
  108.  
  109. OFFC
  110. ----
  111. The main code program. Turns off your 48 enabling the codelock.
  112. When you turn it back on, you have to key in a four-digit code to
  113. gain access to your 48. Note that it will not work if you haven't
  114. selected a code using NEWCODE.
  115.  
  116. OWN
  117. ---
  118. If you press this key with a string in level 1, this string will
  119. be displayed when the calculator is turned on. If the argument is
  120. an empty string, the default message will be displayed.
  121.  
  122. ALARM
  123. -----
  124. Toggles the setting of the Gateway alarm flag. If alarms are
  125. disabled, then no alarms will be allowed to run while the
  126. calculator is turned off. They will instead execute when the
  127. calculator is turned on again. If alarms are enabled, they will
  128. execute, but the 48 will be turned off immediately afterwards.
  129. Note that this flag has no effect when the calculator is on!
  130.  
  131.  
  132. ADDITIONAL INFORMATION
  133. ======================
  134.  
  135. The codelock is not activated when the HP48 turns itself off to
  136. preserve battery.
  137.  
  138. The OFFC user key assignment is sometimes cleared by other pro-
  139. grams or actions. Pressing the USR key once or twice (depending on
  140. the state of flag -61) or running the ASSIGN program will restore
  141. it. 
  142.  
  143. If you use an alarm that adjusts the clock (to keep the clock
  144. accurate) you should disable alarms with the ALARM key, otherwise
  145. you will get unpredictable results.
  146.  
  147. The Gateway library has number 873.
  148.  
  149. The program ASC->, written by William C Wickes, has been posted 
  150. several times and is available from many FTP-sites.
  151.  
  152. I will not provide source code.
  153.  
  154. ----------------------------------------------------------------
  155. GATEWAY-48 is Copyright Erik Bryntse 1991, 1992. Non-commercial
  156. distribution permitted. Use this program at your own risk!
  157. ----------------------------------------------------------------
  158.  
  159. This program has been tested by people with different calculator
  160. versions and different software and hardware. Much work have been
  161. spent on this. Thank you all who have helped me with this!
  162.  
  163.  
  164. Please send bug reports, questions, or suggestions to
  165.  
  166. Erik Bryntse
  167. SHPRF (the HP User Club of Sweden)
  168. Box 15061
  169. S-700 15  OREBRO
  170. SWEDEN
  171.  
  172. erikmb@cd.chalmers.se
  173. erikmb@etek.chalmers.se
  174. END_DOC
  175.  
  176. DOWNLOAD FILE IN ASC-FORMAT
  177.  
  178. BEGIN_ASC gateway.asc
  179. %%HP: T(3)A(D)F(.);
  180. "04B20B1110A074144554751495D24383A0963E101000000ABF00126008963500
  181. D9D20E1632521A129E20963A0084E206034341323334378BF14563284E205034
  182. 3495543597632DCC02CFA20100384E2050343495543578BF1EFE02DCC02EB3A1
  183. 29E20963E0093632B21308963400D9D20E1632041A1339202000000000003780
  184. C741229E20963A0047A2084E206034341323334384E2050343495543584E2080
  185. 14C4D414C4C4F47584E2050F475E45425B2130EFE02041A13392010000000000
  186. 03190845223392010000000000002695D2C1218917F791339206990000000000
  187. 010E5FB1C9432D9D20E163227991CFA20100333920200000000000378078BF1E
  188. FE02EFE0293632B21303F2A2387C1EF8918DBF193632B2130C2A20F700002020
  189. 202020274144554751495D24383A082369202542796B602242797E6473756021
  190. 3939323A0E7E7E7E7E7E7E7E7E723E28326E7E7E7E7E7E7E7E7E78963700D9D2
  191. 0E1632C2A20110007527F6E67612743A2485A1339209990000000000080F17A1
  192. 93632B21308963300D9D20E1632858A129E209636009C2A2485A1521A129E209
  193. 63A003CE2284E206034341323334378BF168BC1339201000000000000020279E
  194. 1AFE22D9D20C2A2051000F4C6460234F64656803A2485A129E209638003CE221
  195. 67E1AFE2229E20963C005BF2229E209637005DF22B21305BF22D9D208DBF129E
  196. 20963C00B21305DF22EB3A193632B2130CCD20FF0008FB97608FE316084F8F51
  197. 110808F050408AF0AF1AF2AF320134135AF320F37240A87816B432390BAE2081
  198. 3DBDA1FB010014F8088514D8F5E0103453721CA8DC75302030AD1A85CD43FD97
  199. 61090A2FD97B0090E7FE5D901C681B4CA3423000C2134D215608018F06110DAD
  200. 280116015E00EF201182824224844428884828963200D9D20E1632C9432D9D20
  201. E163229E2096350093632B21303392010000000000031904F422339201000000
  202. 000000269472C193632B21308963900D9D20E1632218917F7913392059900000
  203. 00000010E5FB1C9432D9D20E16322799129E20963E0093632B21303F2A2387C1
  204. EF8918DBF193632B21308963A00D9D20E1632E4A2051000EB04600000000000E
  205. 25A193632B21308963B00D9D20E1632916C147A20E4A20510000FF0000000000
  206. 000E4A20510000000000000000000B2130F76C129E20963A003CE2284E206034
  207. 341323334368BC1339201000000000000020D9AE1AFE22D9D20FD332D9D20CFA
  208. 20100384E2050343495543504B02B2130F17328DBF15BF22D9D2078BF1456328
  209. 4E2050343495543597632DCC024563284E206034341323334397632DCC02B213
  210. 05DF22B21305DF22041A133920200000000000378084412F76C129E20963E009
  211. 3632B21308963C00D9D20E1632C2A2051000E456770234F64656D13A2485A129
  212. E20963800C2A20F000014761696E6233A2485A129E209638003CE2292CF1167E
  213. 1AFE22D9D204563284E206034341323334397632DCC02B21305BF22D9D208DBF
  214. 129E20963700B21305DF2293632B2130CCD20220001431371FBA507141135142
  215. 164808C8963100D9D20E1632521A1FD332D9D2029E20963A004563284E208014
  216. C4D414C4C4F4759763204B02B2130F1732D9D209C2A24563284E208014C4D414
  217. C4C4F47597632DCC02C2A201200014C41425D4350254E41424C45444B21305BF
  218. 22D9D204563284E208014C4D414C4C4F47597632EFE02C2A203200014C41425D
  219. 435024494351424C45444B21305DF22858A19C2A2485A19C2A24A5A18DBF1EB3
  220. A193632B21308963000D9D20E16323CE2244CF14B2A2279E1AFE22D9D20C2A20
  221. 72000E456564602F677E656270237472796E676933A1B21305DF223CE2278BF1
  222. 68BC1ED2A2D9AE1AFE22D9D20C2A2012000255617579627560237472796E6769
  223. 33A1B21305DF22521A1DBBF129E20963A003CE2278BF1C2A2050000167E1AFE2
  224. 2D9D208DBF14563284E2050F475E4542597632EFE02B21305BF22D9D20456328
  225. 4E2050F475E4542597632DCC02B21305DF22EB3A193632B21308963E00D9D207
  226. 9E6084E208014C4D414C4C4F475320468DA16D9D2044230B2130D9D20CCC5629
  227. E20963D0044230B213013593CA031FC2E479E6084E2050F475E45425320468DA
  228. 16D9D20451268DA16D9D2011920100001192070000EC4A3B213044230B2130D9
  229. D2029E2096360011920100001192070000EC4A3B213029E20963F006AC308DA1
  230. 6D9D2029E20963900B2130D9D2079E6084E2050343495543588130C80464B2A2
  231. 81622EFE0279E6084E206014C61627D637320464423029E20963D0044230B213
  232. 0B21308963F00D9D20CCD20DC20084F8FB9760D2066C20CCD201B20084F174E7
  233. 30F068FB97607F0256061F08F51110808F200834F320077B1412132102341420
  234. 07DA14D0078AEA06DD06B802014234119208A6DE1641468082453721E2068082
  235. 130AE1A01F690A5CA6C52FA0190D7B72D1808203814AF3F37C90487A87A4C50F
  236. 2307F69136194BF5203361712391705201FB010014F8088514D8F5E010D0E48D
  237. C75302079611FB010014F8088514D8F5E010D08DC75302071418F2D760132346
  238. B200EA1308D2F14034000100607CE4000630BD1A85CD4CED9742054FD97B1049
  239. F0731A096590B4760CFE5D903C681B4CA3433000C2134D215608018F06110DAD
  240. 280116015E0902000318282422484442888482131B295071421018082433200E
  241. 281B4CA1008D3C870005034349554351BBA5071461348F419E04931648F3F8E0
  242. 5008F67CE042216916C1560808A040021608F598E05BC8D0F5101B6550714613
  243. 517F17332F781534BCC1514170A3E93ECE01B2130E4A205500002AFF6D8FFF25
  244. FFF03FF5D0FF430FF022FF6A2FF604FFF75FF6F5FFB26FF1A7FFC68FF14BFFFC
  245. CFFE4A204D0000000000000B4000150009500036000080000000000000000000
  246. 000000000000000000000000000001600030F475E400040F46464345005014C4
  247. 1425D4100601435359474E4200602554D4F4655440070E4547534F44454300C5
  248. 00094000F30002200083000A60000ECD3F02"
  249. END_ASC
  250.  
  251. BYTES: #20F3h 2196.5
  252.  
  253. BEGIN_UU gateway.uue
  254. begin 644 gateway
  255. M2%!(4#0X+45`*[`1`0I'051%5T%9+30X"FGC`0$``*#[`"$&@&E3`)TMX&$C
  256. M):$AZ0)IHP!(+F`P-!0C,T-SN!]4-H+D`@5#0UE%4WDVTLP@_"H0`(/D`@5#
  257. M0UE%4X?[X>\@S0SB.QJ2+I`V#I!C(RLQ@&E#`)TMX&$C0*$QDP("``````!S
  258. M"'P4(ND"::,`="J`Y`(&0T,Q,C,T2"Y0,#24532%Y`((04Q-04Q,3U=(+E#P
  259. M=.54)+42`_X.`A0:,RD0```````PD8!4(C,I$````````&)9+1P2F'%_&3,I
  260. M8)D``````!#@]1N<--+9`AXV(I<9_"H0`#.3`@(``````',(A_OA[R#^#I)C
  261. M(RLQ,"\J@\?ACQG8^Y%C(RLQP*("?P```@("`@)R%$15=!64U4*#HX`RE@)2
  262. M))>V!B(DE^=&-U<&$I.3(Z/@Y^?GY^?GY^<GXX(CYN?GY^?GY^?GAVES`)TM
  263. MX&$C+"H0`0!7<F]N9R%'HT)8&C,ID)D``````(#P<1HY-K(2`Y@V`]#9`AXV
  264. M@H4:DBZ0-@:0+"J$I5$2&I(ND#8*,.PB2"Y@,#04(S-#<[@?ALLQDP(!````
  265. M`````G+IH>\BG2W`H@(5`/#$1@8R]$96AC`JA*4AZ0)I@P##+A)V'OHN(ND"
  266. M:<,`M2\BZ0)I<P#5+[(2`[4OTMD"V/LAZ0)IPP`K,5#](KZCD6,C*S'`W`+_
  267. M`("_>0;X/F&`]/@5$8"`#P4$J`_ZH2_Z(Q!#,:4_`C\G!(J'84LCD[#J`AC3
  268. MVQJ_$`!!CX!808U?#@%#-2?!BLU7`P(#VJ%8W#3?>1:0H/*=MP`)?N_5"<&&
  269. ML<0Z)`,`+#'4$F6`$/A@$=#:@A!A$.4`_@(1*"@D0DA$@HB$@FDC`)TMX&$C
  270. MG#32V0(>-B+I`FE3`#DVLA(#,RD0```````PD4!/(C,I$````````&)))QPY
  271. M-K(2`Y@V"=#9`AXV(H$9]Y<QDP*5"0```````5Z_P4DCG2W@82-RF2'I`FGC
  272. M`#DVLA(#\Z(R>!S^F(&]'SDVLA(#F#8*T-D"'C;BI`(5`.`+9```````X%(:
  273. M.3:R$@.8-@O0V0(>-I)A''0JX*0"%0``_P```````."D`A4```````````"P
  274. M$@-_QB'I`FFC`,,N@N0"!D-#,3(S-(;+,9,"`0````````*=ZJ'O(ITM\#TC
  275. MG2W`KP(!,$@N4#`TE%4T!;0@*S'P<2/8^U'[(ITM<+@?5#:"Y`(%0T-915-Y
  276. M-M+,(%0V@N0"!D-#,3(S-'DVTLP@*S%0_2(K,5#](D"A,9,"`@``````<PA(
  277. M%/)G')(ND#8.D&,C*S&`:<,`G2W@82,L*E`!`$YE=R!#;V1E':-"6!J2+I`V
  278. M","B`@\`$'06EN8F,RJ$I2'I`FF#`,,NDL(?8>>A[R*=+4!E(T@N8#`T%",S
  279. M0Y-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O&6.1M%\",Q87,AD')1"_$`!!CX!808U?#@$-3MA\-2!P:1&_$`!!CX!8
  296. M08U?#@$-V'PU('!!@2]]!C$R9"L`KC&`+1\$0P`0``;'3@!@`]NA6-S$WGDD
  297. M4/2=MP&4#S>AD%8)2V?`[]4)PX:QQ#HT`P`L,=0298`0^&`1T-J"$&$0Y9`@
  298. M`#"!@D(BA$0DB$@H,;&2!1<D`8&`0C,"X(*QQ!H`V,-X`%`P-)15-!6[6G!!
  299. M%D/X%.E`.6&$/X\.!8!OQPXD$I9A'&6`@`H$(&&`7XD.M8P-7P&Q5@479#$5
  300. M]W$S\H=10\L<%10'.I[C[!`K,>"D`E4``*+_UOC_4O\/\U\-_S3P#R+_IO)O
  301. M0/]_]6]?_ROV'WK_;/@?M/_/_.^D`M0```````"P!`!1`)`%`&,```@`````
  302. M`````````````````````````!`&``-/5TX`0/!D9#14``5!3$%230%@$#0U
  303. HE73D)``&4D5-3U9%!'#@5'0U]$14-`!<`)`$`#\`(`(`.`"@!@#@W`#@
  304. `
  305. end
  306. END_UU
  307.